package grape.house.rest.building.vo;

import grape.common.rest.vo.BaseIdVo;
import grape.common.service.trans.TransBy;
import grape.common.service.trans.impl.DatetimeTransServiceImpl;
import grape.crm.service.company.api.ICompanyService;
import grape.house.service.estate.api.IEstateService;
import grape.house.service.estatelicence.api.IEstateLicenceService;
import grape.house.service.estatephase.api.IEstatePhaseService;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 预售证许可楼栋范围
 * </p>
 *
 * @author yangwei
 * @since 2020-09-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="预售证许可楼栋范围数据响应对象")
public class BuildingPresalePermitVo extends BaseIdVo<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号，唯一")
    private String code;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "名称别名")
    private String nameAlias;

    @ApiModelProperty(value = "楼盘id")
    private String estateId;

    @TransBy(type = IEstateService.trans_estate_name,byFieldName = "estateId")
    @ApiModelProperty(value = "楼盘名称")
    private String estateName;

    @ApiModelProperty(value = "楼盘分期 id")
    private String estatePhaseId;

    @TransBy(type = IEstatePhaseService.trans_estate_phase_name,byFieldName = "estatePhaseId")
    @ApiModelProperty(value = "楼盘分期名称")
    private String estatePhaseName;

}
